﻿using Comm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CJGL
{
   public static class ClsParmart
    {

        public static string scanner_ip1 { get; set; }

        //延时停止输送线
        public static string YCTZ { get; set; }
        
        public static string scanner_port1 { get; set; }
        public static string scanner_ip2 { get; set; }
        public static string scanner_port2 { get; set; }
        public static string alert_prot { get; set; }
        public static string Baudrate { get; set; }
        public static string alert_prot1 { get; set; }
        public static string Baudrate1 { get; set; }
        public static string alert_prot2 { get; set; }
        public static string Baudrate2 { get; set; }
        public static string Alter_time1 { get; set; }
        public static string Alter_time2 { get; set; }
        public static string Alter_time3 { get; set; }
        public static string TCYS1 { get; set; }
        public static string TCYS2 { get; set; }
        public static string SelProId { get; set; }
        public static string ProCount { get; set; }
        public static string SCYS { get; set; }
        public static string cboprint1 { get; set; }

        public static string QZ { get; set; }
        public static int LSH { get; set; }
        public static int LSHSD { get; set; }
        public static int EndLSH { get; set; }
        public static string RQ { get; set; }
        public static string ModeType { get; set; }
        public static int RQType { get; set; }
        public static void LoadPar()
        {
            //赋值文件配置
           
            scanner_ip1 = XML.read("scanner_ip1", "p.xml");
            scanner_port1 = XML.read("scanner_port1", "p.xml");
            scanner_ip2 = XML.read("scanner_ip2", "p.xml");
            scanner_port2 = XML.read("scanner_port2", "p.xml");
            alert_prot = XML.read("alert_prot", "p.xml");
            Baudrate = XML.read("Baudrate", "p.xml");
            Alter_time1 = XML.read("Alter_time1", "p.xml");
            Alter_time2 = XML.read("Alter_time2", "p.xml");
            Alter_time3 = XML.read("Alter_time3", "p.xml");
            TCYS1 = XML.read("TCYS1", "p.xml");
            TCYS2 = XML.read("TCYS2", "p.xml");
            SCYS = XML.read("SCYS", "p.xml");
            YCTZ = XML.read("YCTZ", "p.xml");
            cboprint1 = XML.read("cboprint1", "p.xml");
           

        }
    }
}
